import type { PlusColumn } from 'plus-pro-components'

// import { useDicts } from './use-dicts'

// const { getDictOptions } = useDicts()

export function useForm() {
    const columns: PlusColumn[] = [
        {
            colProps: {
                span: 6,
            },
            label: '用户名称',
            prop: 'userName',
            valueType: 'copy',
        },
        {
            colProps: {
                span: 6,
            },
            label: '手机号码',
            prop: 'phone',
            valueType: 'copy',
        },
    ]

    const state = {
        userName: null,
        phone: null,
    }
    const form = ref({
        ...state,
    })
    return { form, columns, state }
}
